<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:icecore="http://www.icefaces.org/icefaces/core"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:ace="http://www.icefaces.org/icefaces/components"
	xmlns:prettyfaces="http://ocpsoft.com/prettyfaces">
<ui:composition template="/templateEventi.xhtml">
	
		<ui:define name="body">
			<h:form id="form1">	

			<section id="content">
				<div class="wrapper">
					<br />
					<h2 class="top-eventi">EVENTI</h2>
					<ice:repeat id="eventi" rows="#{eventiBean.numberRows}" value="#{eventiBean.eventi}" var="eventi" >
					<div class="postBox">
						<div class="postBoxInner">
							<ice:graphicImage styleClass="rt-img-1 ident-bot-5" url="images/eventi/#{eventi.foto}" />
							<h2 class="ident-bot-5">
                                   <ice:commandLink actionListener="#{eventiBean.dettaglioListener}"
									action="pretty:eventiItem">				
									<f:attribute name="ident" value="#{eventi}" />
									<ice:outputText value="#{eventi.titolo}"></ice:outputText>
								</ice:commandLink>
							</h2>
							<div class="ident-bot-6">
								<p><ice:outputText value="#{eventi.descrizioneBreve}" /></p>
								<div class="meta">
								   <ice:outputText value="#{eventi.data}">
                   					  <f:convertDateTime pattern="#{eventiBean.DATE_PATTERN}"/>
                   				   </ice:outputText>  
								</div>
							</div>
							<!--<p><a class="button" href="#">read more</a></p>-->
						</div>
                         <ice:commandLink actionListener="#{eventiBean.dettaglioListener}"
							action="pretty:eventiItem" styleClass="readMore">				
							<f:attribute name="ident" value="#{eventi}" />
							<ice:outputText value="Read More"></ice:outputText>
						 </ice:commandLink>						
					</div>
					</ice:repeat>
				</div>	
			 <div class="wrapper">
	        	<ice:commandLink actionListener="#{eventiBean.rowsListener}"
					styleClass="button">
					<ice:outputText value="Dammene ancora"></ice:outputText>
				</ice:commandLink>                
             </div>
	
			</section><!-- end content -->			
             
    		 </h:form>       
		</ui:define>
	
</ui:composition>
</html>